package com.banca2.bracketplant.main.fragment;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import android.annotation.SuppressLint;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

import com.banca2.bracketplant.R;
import com.banca2.bracketplant.utils.LogUtil;
import com.banca2.bracketplant.widget.CommonAdapter;
import com.banca2.bracketplant.widget.ViewHolder;

/*********************************************************************<br>
 * FindPersonFragment.java											 *<br>
 * 功 能：	找人主Fragment 												 *<br>
 * 																	 *<br>
 *  Ver   变更日期        负责人  					变更内容                        			 *<br>
 * ───────────────────────────────────────────────────────────────── *<br>
 * V0.01 2015-6-7	ZQ      				    创建					 *<br>
 * 																	 *<br>
 * Copyright (c) 2015 StarFollower Corporation. All rights reserved. *<br>
 *┌─────────────────────────────────────────────────────────────────┐*<br>
 *│　此技术信息为本团队机密信息，未经本团队书面同意禁止向第三方披露．　				│*<br>
 *│　版权所有：StarFollower　　　　　　　　　　                     　					│*<br>
 *└─────────────────────────────────────────────────────────────────┘*<br>
 *********************************************************************/
public class FindPersonFragment extends Fragment {

	private ListView mListView;
	private List<String> mData = new ArrayList<String>(Arrays.asList("Hello",
			"World", "Welcome", "Hello", "World", "Welcome", "World",
			"Welcome", "Hello", "World", "Welcome", "World", "Welcome",
			"Hello", "World", "Welcome"));
	private CommonAdapter<String> mAdapter;

	@SuppressLint("InflateParams") @Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		LogUtil.v(this, "onCreateView(...) - start");
		
		View view = inflater.inflate(R.layout.fragment_tab_item_find_person,
				null);
		
		mAdapter = new CommonAdapter<String>(getActivity(), mData,
				R.layout.list_item_find_person) {
			@Override
			public void convert(ViewHolder viewHolder, String data) {
				// TODO Auto-generated method stub

			}
		};

		mListView = (ListView) view.findViewById(R.id.listview_find_person);
		mListView.setAdapter(mAdapter);
		
		LogUtil.v(this, "onCreateView(...) - end");
		return view;
	}// onCreateView
}
